package com.example.javafx.vbox;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;

/**
 *
 */
public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        TextArea textArea = new TextArea();
        VBox vBox = new VBox();
        vBox.getChildren().add(textArea);
        VBox.setVgrow(textArea, Priority.ALWAYS);

        Scene scene = new Scene(vBox,320,112, Color.rgb(0,0,0,0));
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
